﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="RequestPromotion.aspx.vb" Inherits="Assignment4.RequestPromotion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Request Promotion</h1>
    <p>
        <asp:DropDownList ID="drpPromotion" runat="server" AppendDataBoundItems="True" 
            DataSourceID="SqlDataSourcePromotion" DataTextField="PromotionTypeTitle" 
            DataValueField="PromotionTypeId">
            <asp:ListItem Value="-1">Select Promotion</asp:ListItem>
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSourcePromotion" runat="server" 
            ConnectionString="<%$ ConnectionStrings:learningConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:learningConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [PromotionsType]"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Button ID="btnPromote" runat="server" Text="Send Request" />
    </p>
    <p>
        <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
    </p>

</asp:Content>
